import autoImport from "unplugin-auto-import/vite";
import { fileURLToPath } from "url";

export default function createAutoImport() {
	return autoImport({
		imports: ["vue", "vue-router", "pinia"],
		dts: fileURLToPath(new URL("../../types/auto-imports.d.ts", import.meta.url))
	});
}
